﻿using SqlSugar;
using Zhp.Entity.SysEnum;
using Zhp.SqlSugar.Entity;

namespace Zhp.Entity.Formula
{
    [SugarTable("Formula_Variable")]
    public class FormulaVariable : BaseEntity<FormulaVariable, long>
    {
        [SugarColumn(IsNullable = false, ColumnDescription = "变量类型")]
        public FormulaVariableTypeEnum VariableType { get; set; }

        [SugarColumn(IsNullable = false, ColumnDescription = "变量标识")]
        public string VariableKey {  get; set; }

        [SugarColumn(IsNullable = false, ColumnDescription = "变量名")]
        public string VariableName {  get; set; }

        [SugarColumn(IsNullable = true, ColumnDescription = "字段名")]
        public string EntityField {  get; set; }

        [SugarColumn(IsNullable = true, ColumnDescription = "实体全名称")]
        public string EntityType {  get; set; }

        [SugarColumn(IsNullable = true, ColumnDescription = "数据主键")]
        public long VariablePrimaryKey {  get; set; }

        [SugarColumn(IsNullable = true, ColumnDescription = "排序")]
        public decimal Order { get; set; }
    }
}
